﻿using SuporeSliplampApp.DataAccess;
using SuporeSliplampApp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SuporeSliplampApp.Service
{
    public class AddPatientService
    {
        SqlHelper sqlHelper = new SqlHelper();

        public bool AddPatient(PatientModel patient)
        {
            return sqlHelper.SavePatient(patient);
        }

        public List<string> getPics(string id)
        { 
            return sqlHelper.getPicList(id);
        }

        public List<PatientModel> GetAllPatients() 
        {
            return sqlHelper.GetPatients();
        }

        public bool SaveResults(ResultModel result)
        {
            return sqlHelper.SaveResults(result);
        }

        public bool DeletePic(string path, string id)
        {
            return sqlHelper.deletePic(path, id);
        }

        public bool PatidExist(string id)
        {
            return sqlHelper.PatidExist(id);
        }


        public bool PicExist(string id)
        {
            return sqlHelper.PicExist(id);
        }


    }
}
